f = open('asdasdasdasdasdasd.txt', mode='w', encoding='utf-8')
# FileNotFoundError  testasd文件并没有找到
print(f.writable())  #
print(f.write('hellopython helloworldsadsadasdasdhjasgdhasgdjasadas'))  # 11代表的是我们写入字符串的长度
# f.writelines('123\n456\n789asd\n')
# # 关闭文件
# f.close()
